<thead>
  <tr>
    <th><%= _('Name') %></th>
    <th><%= _('Folder') %></th>
    <th><%= _('CPUs') %></th>
    <th><%= _('Memory') %></th>
    <th><%= _('Power') %></th>
    <th><%= _('Operating system') %></th>
    <th><%= _('Hypervisor') %></th>
    <th><%= _('Actions') %></th>
  </tr>
</thead>
<tbody>
  <% @vms.each do |vm| %>
    <tr>
      <td><%= link_to_if_authorized vm.name, hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity).merge(:auth_object => @compute_resource, :auth_action => 'view', :authorizer => authorizer) %></td>
      <td><%= vm.path %></td>
      <td><%= vm.cpus %></td>
      <td><%= number_to_human_size vm.memory %></td>
      <td><span <%= vm_power_class(vm.ready?) %>>
          <%= vm_state(vm) %></span>
      </td>
      <td><%= vm.operatingsystem %></td>
      <td><%= vmware_vm_hypervisor_name(vm) %></td>
      <td>
        <%= action_buttons(vm_power_action(vm, authorizer),
                         (display_link_if_authorized(_('Console'), hash_for_console_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity).merge(:auth_object => @compute_resource, :authorizer => authorizer)) if vm.ready?),
                         vm_import_action(vm),
                         display_delete_if_authorized(hash_for_compute_resource_vm_path(:compute_resource_id => @compute_resource, :id => vm.identity).merge(:auth_object => @compute_resource, :authorizer => authorizer))) %>
      </td>
    </tr>
  <% end %>
</tbody>
